<?php


namespace App\Sevrice;

use App\PayType\ZhiFuBao;

class Pay
{
    //简单工厂
   static function payOrder($type,$order,$total){
          if($type=='支付宝'){
            $obj=new ZhiFuBao();
            return $obj->index($order,$total);
          }elseif ($type=='微信'){

          }
     }
}